import Vue from 'vue'
//0.导入vuerouter
import VueRouter from 'vue-router'

import login from '../views/login.vue'


Vue.use(VueRouter)

const routes = [
  {
    name:'login',
    path:'login',
    component:login
  }
  
]

//3.创建路由规则
const router = new VueRouter({
  routes
})
//4.导出到main.js中，挂载到vue实例
export default router
